package com.example.bishe.mapper;

import com.example.bishe.entity.Photo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LDH
 * @since 2022/11/30
 */
@Mapper
public interface PhotoMapper extends BaseMapper<Photo> {

    @Select("SELECT url FROM `photo` WHERE come_id=#{comeId}")
    List<String> getImages(@Param("comeId") Long comeId);

}
